﻿@model PunchClock.Models.LoginModel
@{
    ViewBag.Title = "Log in";
}
<div class="col-lg-6">
    <div class="well bs-component">
        @using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post,
                new { @class = "form-horizontal" }))
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary()
            <fieldset>
                <legend>@ViewBag.Title</legend>
                <div class="form-group">
                    @Html.LabelFor(m => m.UserName, new { @class = "col-lg-2 control-label" })
                    <div class="col-lg-10">
                        @Html.TextBoxFor(m => m.UserName, new { @class = "form-control" })
                        @Html.ValidationMessageFor(m => m.UserName)
                    </div>
                </div>
                <div class="form-group">
                    @Html.LabelFor(m => m.Password, new { @class = "col-lg-2 control-label" })
                    <div class="col-lg-10">
                        @Html.PasswordFor(m => m.Password, new { @class = "form-control" })
                        @Html.ValidationMessageFor(m => m.Password)
                        <div class="checkbox">
                            <label>
                                @Html.CheckBoxFor(m => m.RememberMe) Remember me?
                            </label>
                        </div>
                    </div>
                </div>
                <div class="col-lg-10 col-lg-offset-2">
                    <input type="submit" value="Log in" class="btn btn-primary" />
                    <p>
                        @Html.ActionLink("Register", "Register", "User") if you don't have an account.
                    </p>
                </div>
            </fieldset>
        }
    </div>
</div>


@*<section class="social" id="socialLoginForm">
        <h2>Use another service to log in.</h2>
        @Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
    </section>*@

@section Scripts {
    @*@Scripts.Render("~/bundles/jqueryval")*@
}
